package com.zys.el.user.config.po;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

@Data
public class Show {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String motto;
    private Integer fans_count;
    private Integer follow_count;
    private Integer note_count;
    private List<note> note;

    @Data
    public class note {
        private N n;
        private String[] feil;
        private String best_fiel;


        public note(N n, String[] feil, String best_fiel) {

            this.n = n;
            this.feil = feil;
            this.best_fiel = best_fiel;
        }

        @Override
        public String toString() {
            return "note{" +
                    "n=" + n +
                    ", feil=" + Arrays.toString(feil) +
                    ", best_fiel='" + best_fiel + '\'' +
                    '}';
        }
    }

    @Data
    public class N {
        private String id;
        private String authorId;
        private Date createTime;
        private String contentPath;
        private String item;
        private Long fansMenuId;
        private String noteItem;

        public N(String id, String authorId, Date createTime, String contentPath, String item, Long fansMenuId, String noteItem) {
            this.id = id;
            this.authorId = authorId;
            this.createTime = createTime;
            this.contentPath = contentPath;
            this.item = item;
            this.fansMenuId = fansMenuId;
            this.noteItem = noteItem;
        }
    }

}
